package com.info.zhiduoduo.repository.entity.quota;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author bob
 * @since 2020-11-01
 */
@Data
@Accessors(chain = true)
@TableName("zdd_crowdsource_city_quota")
public class CrowdsourceCityQuota extends Model<CrowdsourceCityQuota> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	 * 众包城市配置id
	 */
	@TableField("config_id")
	private Integer configId;
	/**
	 * 用户类型: 1:自然人 2:创客
	 */
	@TableField("user_type")
	private Integer userType;
	/**
	 * 单笔支付限额
	 */
	@TableField("cs_once_quota")
	private BigDecimal csOnceQuota;
	/**
	 * 众包月度限额
	 */
	@TableField("cs_monthly_quota")
	private BigDecimal csMonthlyQuota;
	/**
	 * 众包季度限额
	 */
	@TableField("cs_quarterly_quota")
	private BigDecimal csQuarterlyQuota;
	/**
	 * 众包年度限额
	 */
	@TableField("cs_yearly_quota")
	private BigDecimal csYearlyQuota;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 逻辑删除 0:正常 1:已删除
	 */
	private Integer deleted;
	private Date createtime;
	private Date updatetime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
